<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_Head1">
    <title id="paipaicms">找回密码 -网 </title>
    <script type="text/javascript" language="javascript">
//拍卖设置
window.inibidjs='';
window.isfoucs=1;
$(document).ready(function(){

//	$("#logo").pngFix();
	inimember();//检查用户的状态

});
    </script>
</head>
<body>
<#include "top.html">
    <div class="n_body">
        <div class="n_main">
           
            <div style="width:978px; background-image:url(${base}/res/front/images/reg/r_top.jpg); height:29px; padding-left:20px; padding-top:5px;"><img src="${base}/res/front/images/reg/pass_logo.jpg" /></div>
            <div  style="width:998px; background-image:url(${base}/res/front/images/reg/r_middle.jpg);">
                <div class="n_ml_bb">
                    <form name="regform" id="regform" class="n_reg_main">
                        <div>
                        </div>
                        <div class="denglubox clearfix">
                            <div class="denglu">
                            </div>
                            <div class="kuang clearfix wrong" id="servererror">
                            </div>
                        </div>
                        <div class="n_i_item">
                            <div class="n_i_item2 clearfix">
                                <div class="n_i_name">
                                    用户名：</div>
                                <div class="n_i_input">
                                    <div class="n_i_inputp">
                                        <input type="text" class="n_inputtext n_textbox" id="UserNickName" name="UserNickName"
                                            value="" /></div>
                                </div>
                            </div>
                        </div>
                        <div class="n_i_item">
                            <div class="n_i_item2 clearfix">
                                <div class="n_i_name">
                                    Email：</div>
                                <div class="n_i_input">
                                    <div class="n_i_inputp">
                                        <input type="text" class="n_inputtext n_textbox" id="UserEmail" name="UserEmail"
                                            value="" /></div>
                                </div>
                            </div>
                        </div>
                        <div class="n_i_item">
                            <div class="n_i_item2 clearfix">
                                <div class="clearfix">
                                    <div class="n_i_name">
                                        验证码：</div>
                                    <div class="n_i_input">
                                        <div class="clearfix">
                                            <img src="/captcha.vsl" id="safecode" onclick="javascript:this.src='${base}/captcha.vsl?t='+new Date().getTime();" style="vertical-align:middle;"/>
                                            <a href="javascript:;" class="message2" onclick="reloadcode();return false;" onfocus="$('#verifyCode').focus();">看不清楚？</a></div>
                                    </div>
                                </div>
                                <div class="clearfix">
                                    <div class="n_i_name">
                                    </div>
                                    <div class="n_i_input">
                                        <div class="n_i_inputp">
                                            <input type="text" class="n_inputtext n_textbox" name="verifyCode" id="verifyCode" /></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="n_i_item">
                            <div class="n_i_item2 clearfix">
                                <div class="n_i_name">
                                </div>
                                <div class="n_i_input">
                                    <div class="n_i_inputp">
                                        <input type="button" id="btnGetPass" value="确定" /></div>
                                </div>
                            </div>
                        </div>
                        <div class="tlogWord clearfix">
                            <span style="display: inline-block; margin-left: 15px; float: left; color: #f00;">
                                
                                如果忘记注册邮箱，请与本站的客服联系。 </span>
                        </div>
                    </form>
                </div>
            </div>
            <div style="width:998px; background-image:url(${base}/res/front/images/reg/r_bottom.jpg); height:16px; overflow:hidden;"></div>
        </div>
    </div>

    <script language="javascript" type="text/javascript">
    function CheckInput() {
        if ( $.trim( $("#UserNickName").val() ) == "") {
            $("#servererror").html("用户名不能为空");
            $("#UserNickName").focus();
            return false;
        }

        if ($.trim( $("#UserEmail").val() ) == "") {
            $("#servererror").html("Emial不能为空");
            $("#UserEmail").focus();
            return false;
        }

        if ($.trim( $("#verifyCode").val() )== "") {
            $("#servererror").html("验证码不能为空");
            $("#verifyCode").focus();
            return false;
        }
		
		return true;
        }
		
function CheckAndSubmit()
{
			var queryString = $('#regform').formSerialize();

			AjaxSubmit(
			"POST"
			,"index.aspx@s=_2FUserInfo_2FUserGetPass2_2F"
			,queryString
			,function(msg)
			{
				switch(msg)
				{
					case "-1":alert("没查询到您的信息，请与客服联系。");break;
					case "-2":alert("验证码不正确。");break;
					case "0":alert("已查询到您的信息，但因网络原因邮件发送失败，请与客服联系。");break;
					case "1":alert("您好，您的密码信息已发送到您的邮箱中，请查收。");
					break;
					
				}
				reloadcode();
			}
			,function(msg)
			{
				alert(msg);
				reloadcode();
			}
			);		



}			
	
	
	
        function reloadcode() {//重新生成验证码
			document.getElementById('safecode').src = 'index.aspx@s=_2FUser_2Fverify_2F&tid=' + (new Date().getTime().toString(36));
        }
        
        $(document).ready(function () 
		{
			reloadcode();
			
			$("#btnGetPass").click(function(){
				var isok = CheckInput() ;
				if(isok)CheckAndSubmit();
			});
        });
		

		
    </script>
    <#include "foot.html">
</body>
</html>
